package com.baseDemo.web.dao.uploadimage.impl;


import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.baseDemo.web.dao.uploadimage.UploadImageEntityDao;
import com.baseDemo.web.entity.UploadImageEntity;
import com.share.hibernate.baseDaoSupport.impl.BaseDaoHibernateSupport;
@Repository
public class UploadImageEntityDaoHibernate extends BaseDaoHibernateSupport<UploadImageEntity>
		implements UploadImageEntityDao {

	@Override
	public UploadImageEntity get(String ownerEntity, String ownerId) {
		String HQL = "from UploadImageEntity uip where uip.ownerEntity=:ownerEntity and uip.ownerId=:ownerId";
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("ownerEntity", ownerEntity);
		map.put("ownerId", ownerId);
		return super.get(HQL, map);
	}


}
